﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _2112A_2_MES._sujiahao
{
    /// <summary>
    /// 过程检验单
    /// </summary>
    public class QcIpqc : Entity<int>
    {

            /// <summary>
            /// 行ID
            /// </summary>
            public long? LineId { get; set; }

            /// <summary>
            /// 检验单编码
            /// 最大长度：64
            /// </summary>
            public string? IpgcCode { get; set; }

            /// <summary>
            /// 检验单名称
            /// 最大长度：255
            /// </summary>
            public string? IpgcName { get; set; }

            /// <summary>
            /// 检验单类型
            /// 最大长度：64
            /// </summary>
            public string? IpgcType { get; set; }

            /// <summary>
            /// 模板ID
            /// </summary>
            public long? TemplateId { get; set; }

            /// <summary>
            /// 来料检验单ID
            /// </summary>
            public long? SourceDocId { get; set; }

            /// <summary>
            /// 来源单据类型
            /// 最大长度：64
            /// </summary>
            public string? SourceDocType { get; set; }

            /// <summary>
            /// 来源单据编码
            /// 最大长度：64
            /// </summary>
            public string? SourceDocCode { get; set; }

            /// <summary>
            /// 来源单据行ID
            /// </summary>
            public long? SourceLineId { get; set; }

            /// <summary>
            /// 生产工单ID
            /// </summary>
            public long? WorkorderId { get; set; }

            /// <summary>
            /// 工单编号
            /// 最大长度：64
            /// </summary>
            public string? WorkorderCode { get; set; }

            /// <summary>
            /// 工单名称
            /// 最大长度：255
            /// </summary>
            public string? WorkorderName { get; set; }

            /// <summary>
            /// 任务ID
            /// </summary>
            public long? TaskId { get; set; }

            /// <summary>
            /// 任务编码
            /// 最大长度：64
            /// </summary>
            public string? TaskCode { get; set; }

            /// <summary>
            /// 任务名称
            /// 最大长度：255
            /// </summary>
            public string? TaskName { get; set; }

            /// <summary>
            /// 工作站ID
            /// </summary>
            public long? WorkstationId { get; set; }

            /// <summary>
            /// 工作站编码
            /// 最大长度：64
            /// </summary>
            public string? WorkstationCode { get; set; }

            /// <summary>
            /// 工作站名称
            /// 最大长度：255
            /// </summary>
            public string? WorkstationName { get; set; }

            /// <summary>
            /// 工序ID
            /// </summary>
            public long? ProcessId { get; set; }

            /// <summary>
            /// 工序编码
            /// 最大长度：64
            /// </summary>
            public string? ProcessCode { get; set; }

            /// <summary>
            /// 工序名称
            /// 最大长度：255
            /// </summary>
            public string? ProcessName { get; set; }

            /// <summary>
            /// 产品ID
            /// </summary>
            public long? ItemId { get; set; }

            /// <summary>
            /// 产品编码
            /// 最大长度：64
            /// </summary>
            public string? ItemCode { get; set; }

            /// <summary>
            /// 产品名称
            /// 最大长度：255
            /// </summary>
            public string? ItemName { get; set; }

            /// <summary>
            /// 规格
            /// 最大长度：500
            /// </summary>
            public string? Specification { get; set; }

            /// <summary>
            /// 单位
            /// 最大长度：64
            /// </summary>
            public string? UnitOfMeasure { get; set; }

            /// <summary>
            /// 检测数量
            /// 精度：12, 小数位数：4
            /// </summary>
            public double? QuantityCheck { get; set; }

            /// <summary>
            /// 不合格数量
            /// 精度：12, 小数位数：4
            /// </summary>
            public double? QuantityUnqualified { get; set; }

            /// <summary>
            /// 合格数量
            /// 精度：12, 小数位数：4
            /// </summary>
            public double? QuantityQualified { get; set; }

            /// <summary>
            /// 初校验比率
            /// 精度：12, 小数位数：4
            /// </summary>
            public double? MajRate { get; set; }

            /// <summary>
            /// 次校验比率
            /// 精度：12, 小数位数：4
            /// </summary>
            public double? MinRate { get; set; }

            /// <summary>
            /// 首校验数量
            /// 精度：12, 小数位数：4
            /// </summary>
            public double? CrQuantity { get; set; }

            /// <summary>
            /// 第二校验数量
            /// 精度：12, 小数位数：4
            /// </summary>
            public double? MajQuantity { get; set; }

            /// <summary>
            /// 最小校验数量
            /// 精度：12, 小数位数：4
            /// </summary>
            public double? MinQuantity { get; set; }

            /// <summary>
            /// 校验结果
            /// 最大长度：64
            /// </summary>
            public string? CheckResult { get; set; }

            /// <summary>
            /// 检查日期
            /// </summary>
            public DateTime? InspectDate { get; set; }

            /// <summary>
            /// 检查员
            /// 最大长度：64
            /// </summary>
            public string? Inspecor { get; set; }

            /// <summary>
            /// 状态
            /// 最大长度：64
            /// </summary>
            public string? Status { get; set; }

            /// <summary>
            /// 备注
            /// 最大长度：500
            /// </summary>
            public string? Remark { get; set; }

            /// <summary>
            /// 创建人
            /// 最大长度：64
            /// </summary>
            public string? CreateBy { get; set; }

            /// <summary>
            /// 创建时间
            /// </summary>
            public DateTime? CreateTime { get; set; }

            /// <summary>
            /// 更新人
            /// 最大长度：64
            /// </summary>
            public string? UpdateBy { get; set; }

            /// <summary>
            /// 更新时间
            /// </summary>
            public DateTime? UpdateTime { get; set; }
        }
}
